package com.gismore.parser.excel;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.gismore.parser.excel.config.AppConfig;
import com.gismore.parser.excel.config.vo.TemplateSheet;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.List;
import java.util.Set;

/**
 * 应用入口
 */
public class Main {
	public static void main(String[] args) {
		AppConfig.init();
		Logger log = LogManager.getLogger(Main.class);
		log.debug("log4j2 config complete!");
		AppConfig appConfig = AppConfig.me();
		List<TemplateSheet> templateSheetList = appConfig.excelTemplate();
		String str = JSON.toJSONString(templateSheetList);
		log.debug(str);
		log.debug(JSONPath.read(str,"$[sheetIndex=1]"));
	}
}
